import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
Vue.use(Element)
//axios引入
import axios from 'axios'
//引入markdown编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
//前置拦截 后置拦截
import './axios'
Vue.prototype.axios = axios
Vue.prototype.Saxios=axios
Vue.use(mavonEditor)
//RSA前端加密
import JSEncrypt from 'jsencrypt';//引入模块
Vue.prototype.$jsEncrypt = JSEncrypt;//配置全局变量

Vue.prototype.$jsEncrypt=JSEncrypt
Vue.prototype.$axios=axios
import qs from "qs"
Vue.prototype.$qs=qs



axios.default.timeout=50000
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


// main.js

import MathJax from './common/MathJax.js' // MathJax.js内容在1.3，位置随意
Vue.prototype.MathJax = MathJax
